package com.union.core.workModel.dao;

import java.util.List;

import com.union.core.workModel.model.ModelInfo;

public interface ModelInfoDao {
	/**
	 * 查询：劳模列表
	 * @param sex
	 * @param honour
	 * @param level
	 * @param current
	 * @param paramName
	 * @param paramValue
	 * @param orderByName
	 * @param start
	 * @param intPageSize
	 * @return
	 */
	public List<ModelInfo> queryModelList(int sex,String honour,String level,
			String current,String paramName,String paramValue,
			String orderByName,int start,int intPageSize);
	/**
	 * 查询：列表数量
	 * @param sex
	 * @param honour
	 * @param level
	 * @param current
	 * @param paramName
	 * @param paramValue
	 * @return
	 */
	public int queryModelListCount(int sex,String honour,String level,
			String current,String paramName,String paramValue);
	/**
	 * 查询：单条劳模信息
	 * @param model_id
	 * @return
	 */
	public ModelInfo queryModelById(int model_id);
	/**
	 * 添加：劳模信息
	 * @param model
	 * @return
	 */
	public int addModel(ModelInfo model);
	/**
	 * 修改：劳模信息
	 * @param model
	 * @return
	 */
	public boolean editModel(ModelInfo model);
	/**
	 * 删除：劳模信息
	 * @param model
	 * @return
	 */
	public boolean delModel(int model_id);
}
